using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace MinCultura.Sipa.DataAccess.AgentesArtes
{
	/// <summary>
	/// A custom serializable dataset containing 
	/// </summary>
	[Serializable()]
	[DesignerCategory("code")]


	/// <summary>Class for handling datasets</summary>  
		public class AgentesCaracteristicasData : DataTable
	{
		///
		/// Constants for table and fields mapping
		///
		public const string ART_AGENTES_CARACTERISTICAS_TABLE = "ART_AGENTES_CARACTERISTICAS";

		public const string AGE_ID_FIELD = "AGE_ID";
		public const string AGE_DESARROLLO_PRACTICA_ARTISTICA_FIELD = "AGE_DESARROLLO_PRACTICA_ARTISTICA";
		public const string AGE_MANERA_PRACTICA_ARTISTICA_FIELD = "AGE_MANERA_PRACTICA_ARTISTICA";
		public const string ARD_ID_FIELD = "ARD_ID";
		public const string AGE_OTRA_AREA_FIELD = "AGE_OTRA_AREA";
		public const string AGE_OTRA_AREA_ARTISTICA_TEMA_FIELD = "AGE_OTRA_AREA_ARTISTICA_TEMA";
		public const string AGE_HACE_PARTE_ORGANIZACION_ARTISTICA_FIELD = "AGE_HACE_PARTE_ORGANIZACION_ARTISTICA";
		public const string AGE_ORGANIZACION_ARTISTICA_ACTUAL_FIELD = "AGE_ORGANIZACION_ARTISTICA_ACTUAL";
		public const string AGE_ANO_VINCULACION_ACTUAL_FIELD = "AGE_ANO_VINCULACION_ACTUAL";
		public const string AGE_MODALIDAD_FORMACION_ARTISTICA_FIELD = "AGE_MODALIDAD_FORMACION_ARTISTICA";
		public const string NIV_ID_FIELD = "NIV_ID";
		public const string AGE_TITULO_FIELD = "AGE_TITULO";
		public const string AGE_ANO_TITULO_FIELD = "AGE_ANO_TITULO";
		public const string AGE_ENTIDAD_EDUCATIVA_FIELD = "AGE_ENTIDAD_EDUCATIVA";
		public const string AGE_EDU_EN_CURSO_FIELD = "AGE_EDU_EN_CURSO";
		public const string AGE_EDU_SEMESTRES_FIELD = "AGE_EDU_SEMESTRES";
		public const string AGE_EDU_ENTIDAD_FIELD = "AGE_EDU_ENTIDAD";


		protected AgentesCaracteristicasData(SerializationInfo info, StreamingContext context)
		{
			//
		}

		public AgentesCaracteristicasData()
		{
			BuildDataTables();
		}

		/// <summary>
		/// Creates the following datatables: Localidades
		/// </summary>
		private void BuildDataTables()
		{
			Columns.Add(AGE_ID_FIELD, typeof (Decimal));
			Columns[AGE_ID_FIELD].Caption = "Id Agente";

			Columns.Add(AGE_DESARROLLO_PRACTICA_ARTISTICA_FIELD, typeof (String));
			Columns[AGE_DESARROLLO_PRACTICA_ARTISTICA_FIELD].Caption = "Desarrolla Alguna Practica Artistica";

			Columns.Add(AGE_MANERA_PRACTICA_ARTISTICA_FIELD, typeof (String));
			Columns[AGE_MANERA_PRACTICA_ARTISTICA_FIELD].Caption = "Manera Practica Artistica";

			Columns.Add(ARD_ID_FIELD, typeof (Decimal));
			Columns[ARD_ID_FIELD].Caption = "Id Area Artistica";

			Columns.Add(AGE_OTRA_AREA_FIELD, typeof (String));
			Columns[AGE_OTRA_AREA_FIELD].Caption = "Otra Area Artistica";

			Columns.Add(AGE_OTRA_AREA_ARTISTICA_TEMA_FIELD, typeof (String));
			Columns[AGE_OTRA_AREA_ARTISTICA_TEMA_FIELD].Caption = "Otra Ocupacion Artistica";

			Columns.Add(AGE_HACE_PARTE_ORGANIZACION_ARTISTICA_FIELD, typeof (String));
			Columns[AGE_HACE_PARTE_ORGANIZACION_ARTISTICA_FIELD].Caption = "Hace parte de Organizacion Artistica";

			Columns.Add(AGE_ORGANIZACION_ARTISTICA_ACTUAL_FIELD, typeof (String));
			Columns[AGE_ORGANIZACION_ARTISTICA_ACTUAL_FIELD].Caption = "Organizacion Artistica Actual";

			Columns.Add(AGE_ANO_VINCULACION_ACTUAL_FIELD, typeof (String));
			Columns[AGE_ANO_VINCULACION_ACTUAL_FIELD].Caption = "Ano Vinculacion a Organizacion Artistica";

			Columns.Add(AGE_MODALIDAD_FORMACION_ARTISTICA_FIELD, typeof (String));
			Columns[AGE_MODALIDAD_FORMACION_ARTISTICA_FIELD].Caption = "Modalidad Formacion Artistica";

			Columns.Add(NIV_ID_FIELD, typeof (Decimal));
			Columns[NIV_ID_FIELD].Caption = "Id Nivel Educativo";

			Columns.Add(AGE_TITULO_FIELD, typeof (String));
			Columns[AGE_TITULO_FIELD].Caption = "Titulo Obtenido";

			Columns.Add(AGE_ANO_TITULO_FIELD, typeof (String));
			Columns[AGE_ANO_TITULO_FIELD].Caption = "Ano Titulo";

			Columns.Add(AGE_ENTIDAD_EDUCATIVA_FIELD, typeof (String));
			Columns[AGE_ENTIDAD_EDUCATIVA_FIELD].Caption = "Entidad Educativa";

			Columns.Add(AGE_EDU_EN_CURSO_FIELD, typeof (String));
			Columns[AGE_EDU_EN_CURSO_FIELD].Caption = "Educacion en curso";

			Columns.Add(AGE_EDU_SEMESTRES_FIELD, typeof (String));
			Columns[AGE_EDU_SEMESTRES_FIELD].Caption = "Semestres Cursados";

			Columns.Add(AGE_EDU_ENTIDAD_FIELD, typeof (String));
			Columns[AGE_EDU_ENTIDAD_FIELD].Caption = "Nombre Entidad Educativa";

			TableName = ART_AGENTES_CARACTERISTICAS_TABLE;
		}

		/// <summary>
		/// Add a new row to the table
		/// </summary>
		/// <param name="row">Dataset row
		public void addAgentesCaracteristicas(DataRow row)
		{
			this.Rows.Add(row);
		}

	}

}